package com.oak.designmode._24_responsibilityChain;

/**
 * 总经理
 *
 * @ClassName: Zongjingli
 * @Description
 * @Author guoxy
 * @Date 2019/12/3 0003
 * @Version 1.0
 */
public class Zongjingli extends Lingdao {

    private final String name = "总经理";
    private final int level = 0;

    @Override
    public void chuli(Files file) {
        if(this.level > file.getLevel()){
            System.out.println(name + "未处理文件《" + file.getFileName() + "》");
            getNextLingdao().chuli(file);
        }else{
            System.out.println(name + "处理了文件《" + file.getFileName() + "》");
        }
    }
}